
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 10.0.19041.0

SET "PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.42.34433\bin\Hostx64\x64;%PATH%"

REM 获取当前目录的上一级目录名称
for %%I in ("%cd%") do set "parent_dir=%%~nxI"

REM 设置输出文件名为上一级目录名称加上 .pri 扩展名
set OUTPUT_FILE=%parent_dir%.pro

qmake -r -tp vc %OUTPUT_FILE%

pause
